﻿<%@ page title="" language="C#" masterpagefile="~/MasterPage.master" autoeventwireup="true" codebehind="MyList.aspx.cs" inherits="lcs.Web.Admin.gradeinfo.MyList" %>

<asp:content id="Content1" contentplaceholderid="head" runat="server">
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
     <link href="../../jquery-ui.min.css" rel="stylesheet" />
<script src="../../js/jquery-ui.min.js"></script>
      <script type="text/javascript">
         $(function () {
             $("#<%# txtKeyword2.ClientID%>").autocomplete({
                 minLength: 2, // 设置搜索的关键字最小长度// 设置自动完成列表的函数，函数包括两个参数，requset和response      
                 source: function (request, response) {
                     $.ajax({
                         type: "POST",          // 通过request.term可以获得文本框内容   
                         url: "../../Handler.ashx?keyword=" + request.term,
                         contentType: "application/json; charset=gb2312",
                         dataType: "json",
                         success: function (data) {
                             // jQuery.map(array, callback) :将一个数组中的元素转换到另一个数组中。
                             //  下面就是把数组["value1", "value2",...]转换为[{value:"value1"}, {value:"value2"},...]                 
                             response($.map(data, function (item) {
                                 return { label: item.projectName + item.proid, value: item.projectName };
                             }));
                         },
                         error: function () {
                             alert("ajax请求失败");
                         }
                     });
                 }
             });
         });
         </script>
</asp:content>
<asp:content id="Content2" contentplaceholderid="ContentPlaceHolder1" runat="server">
   <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                <tr>
                    <td style="width: 80px" align="right" class="tdbg">
                        
                    </td>
                    <td class="tdbg">                       
                    <b>项目名：</b>
                <asp:TextBox ID="txtKeyword2" runat="server" Width="184px"></asp:TextBox>
                <b>供应商：</b>
                <asp:TextBox ID="txtKeyword" runat="server" Width="91px"></asp:TextBox>
                <b>中标批次：</b>
                <asp:TextBox ID="txtwinbid" runat="server" Width="91px"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="查询"  OnClick="btnSearch_Click" >
                    </asp:Button>                    
                        
                    </td>
                    <td class="tdbg">
                    </td>
                </tr>
            </table>
            <!--Search end-->
            <br />
            <asp:GridView ID="gridView" runat="server" AllowPaging="True" Width="100%" OnPageIndexChanging ="gridView_PageIndexChanging"
                    BorderWidth="0px" CellPadding="0" CellSpacing="1" CssClass="gv" 
            GridLines="None" DataKeyNames="gdid" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="10"  RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated">
                    <Columns>
                   <%-- <asp:TemplateField ControlStyle-Width="30" HeaderText="选择"    >
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
                                </ItemTemplate>
                            </asp:TemplateField> --%>
                        <asp:BoundField DataField="sname" HeaderText="供应商"></asp:BoundField>
            <asp:BoundField DataField="material" HeaderText="产品名称"></asp:BoundField>
           <asp:BoundField DataField="projectName" HeaderText="项目名"></asp:BoundField>
            <asp:BoundField DataField="purchaseid" HeaderText="中标批次"></asp:BoundField>
		<asp:BoundField DataField="yls" HeaderText="原材料及组部件质量控制总台数" SortExpression="yls" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="yle" HeaderText="原材料及组部件质量控制出现问题台数" SortExpression="yle" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="scs" HeaderText="生产制造工艺控制评价期内质量监" SortExpression="scs" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="sce" HeaderText="生产制造工艺控制不符合台数" SortExpression="sce" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="scwte1" HeaderText="生产制造工艺控制制造过程中出现" SortExpression="scwte1" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="zzs" HeaderText="组装试验检验已完成试验的总台数" SortExpression="zzs" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="zze" HeaderText="组装试验检验出厂试验一次合格的" SortExpression="zze" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="shs" HeaderText="收货及检验实际到货的总台数" SortExpression="shs" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="she" HeaderText="收货及检验到货验收合格的台数" SortExpression="she" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="dhs" HeaderText="到货及时性应到货的总台数" SortExpression="dhs" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="dhe" HeaderText="到货及时性已到货的台数" SortExpression="dhe" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="azs" HeaderText="现场安装设备质量评价期内投运设" SortExpression="azs" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="aze" HeaderText="现场安装设备质量安装调试期间出" SortExpression="aze" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="azsum" HeaderText="现场服务质量" DataFormatString="{0:0.##}" SortExpression="azsum" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="yxgzs" HeaderText="运行维护运行设备的总台数" SortExpression="yxgzs" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="yxgze" HeaderText="运行维护运行中发生故障设备的台" SortExpression="yxgze" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="yxbfs" HeaderText="运行维护非正常退役报废率已投运" SortExpression="yxbfs" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="yxbfe" HeaderText="运行维护非正常退役报废的台数" SortExpression="yxbfe" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="yxsum" HeaderText="售后服务质量" DataFormatString="{0:0.##}" SortExpression="yxsum" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="ylmark" HeaderText="原材料及组部件质量控制" DataFormatString="{0:0.##}" SortExpression="ylmark" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="scmark" HeaderText="生产制造工艺控制" DataFormatString="{0:0.##}" SortExpression="scmark" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="zzmark" HeaderText="组装试验检验" DataFormatString="{0:0.##}" SortExpression="zzmark" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="shmark" HeaderText="收货及检验" DataFormatString="{0:0.##}" SortExpression="shmark" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="dhmark" HeaderText="到货及时性" DataFormatString="{0:0.##}" SortExpression="dhmark" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="azmark" HeaderText="现场安装设备质量" DataFormatString="{0:0.##}" SortExpression="azmark" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="yxzlmark" HeaderText="设备质量状况" DataFormatString="{0:0.##}" SortExpression="yxzlmark" ItemStyle-HorizontalAlign="Center"  /> 
                        <asp:BoundField DataField="pjsum" HeaderText="总分" DataFormatString="{0:0.##}" SortExpression="yxzlmark" ItemStyle-HorizontalAlign="Center"  /> 
		<asp:BoundField DataField="pfdatetime" HeaderText="评分时间" SortExpression="pfdatetime" ItemStyle-HorizontalAlign="Center"  /> 
                            
                            
                            <asp:HyperLinkField HeaderText="制造监督" ControlStyle-Width="50" DataNavigateUrlFields="gdid" DataNavigateUrlFormatString="ModifyZZ.aspx?id={0}"
                                Text="编辑"  />                          
                        <asp:HyperLinkField HeaderText="安装调试" ControlStyle-Width="50" DataNavigateUrlFields="gdid" DataNavigateUrlFormatString="ModifyAZ.aspx?id={0}"
                                Text="编辑"  />   
                        <asp:HyperLinkField HeaderText="运行维护" ControlStyle-Width="50" DataNavigateUrlFields="gdid" DataNavigateUrlFormatString="ModifyYX.aspx?id={0}"
                                Text="编辑" />                              
                        </Columns>
                </asp:GridView>
               <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                <tr>
                    <td style="width: 1px;">                        
                    </td>
                    <td align="left">
                        <asp:Button ID="btnDelete" runat="server" Text="导出" OnClick="btnOut_Click"/>                       
                    </td>
                </tr>
            </table>
</asp:content>
